package com.platform.car.model;

public class City {

    /**
     * 编号
     */
    private Long id;
    /**
     * 父ID
     */
    private Long parentId;

    /**
     * 省市区的名称
     */
    private String name;

    /**
     * 省市区的拼音
     */
    private String py;

    /**
     * 邮政编号
     */
    private String code;

    /**
     * 区分省市区
     */
    private Integer type;

    /**
     * 直辖市的标记
     */
    private Integer special;

    /**
     * 父级名称
     */
    private String parentName;

    public City() {
    }

    public City(Long id, Long parentId, String name, String py, String code, Integer type, Integer special, String parentName) {
        this.id = id;
        this.parentId = parentId;
        this.name = name;
        this.py = py;
        this.code = code;
        this.type = type;
        this.special = special;
        this.parentName = parentName;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }


    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPy() {
        return py;
    }

    public void setPy(String py) {
        this.py = py;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getSpecial() {
        return special;
    }

    public void setSpecial(Integer special) {
        this.special = special;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    @Override
    public String toString() {
        return "City{" +
                "id=" + id +
                ", parentId=" + parentId +
                ", name='" + name + '\'' +
                ", py='" + py + '\'' +
                ", code='" + code + '\'' +
                ", type=" + type +
                ", special=" + special +
                ", parentName='" + parentName + '\'' +
                '}';
    }
}
